<div class="layui-fluid" lay-title="表单组合">
    <div class="layui-card">
        <div class="layui-card-body" style="padding: 15px;">
            <form class="layui-form" action="" lay-filter="form-group" id="itemParamAddTable">
                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-md6">
                            <label class="layui-form-label">标题</label>
                            <div class="layui-input-block">
                                <input type="text" name="itemTitle" lay-verify="required" autocomplete="off" placeholder="请输入标题" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-col-md6">
                            <label class="layui-form-label">标题</label>
                            <div class="layui-input-block">
                                <input type="text" name="itemTitle" lay-verify="required" autocomplete="off" placeholder="请输入标题" class="layui-input">
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-md6">
                            <label class="layui-form-label">标题</label>
                            <div class="layui-input-block">
                                <input type="text" name="itemTitle" lay-verify="required" autocomplete="off" placeholder="请输入标题" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-col-md6">
                            <label class="layui-form-label">标题</label>
                            <div class="layui-input-block">
                                <input type="text" name="itemTitle" lay-verify="required" autocomplete="off" placeholder="请输入标题" class="layui-input">
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">现价</label>
                    <div class="layui-input-block">
                        <input type="text" name="prePrice" lay-verify="required|price" autocomplete="off" placeholder="请输入现价" class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">原价</label>
                    <div class="layui-input-block">
                        <input type="text" name="origPrice" lay-verify="required|price" autocomplete="off" placeholder="请输入原价" class="layui-input">
                    </div>
                </div>

                <fieldset class="layui-elem-field layui-field-title">
                    <legend style="font-size:14px" id="taskNodeTitle">商品信息</legend>
                </fieldset>

                <div class="layui-form-item">
                    <label class="layui-form-label">商品</label>
                    <div class="layui-input-block">
                        <table class="layui-table show-params" >
                            <thead>
                                <tr>
                                    <th >标题</th>
                                    <th >价格</th>
                                    <th >库存</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>1</td>
                                    <td>1</td>
                                    <td>1</td>
                                </tr>
                            </tbody>
                        </table>

                    </div>
                </div>


            </form>
        </div>
    </div>
</div>

<script>
    layui.use(['jquery', 'admin', 'form','layer','selectN','upload'], function () {
        var $ = layui.jquery
            , layer = layui.layer
            , form = layui.form
            , selectN = layui.selectN
            , upload = layui.upload
            , admin = layui.admin;

        var id = POPUP_DATA.id;
        var table = POPUP_DATA.table;
        var item = {};
        form.render(null, 'form-group');

        var catId="";
        // 初始化
        if (id) {
            /*admin.get({
                type: 'get',
                url: '/item/info/' + id,
                dataType: 'json',
                async:false,
                success: function (data) {
                    item = data.item;
                    if (item) {
                        form.val("form-group", {
                            "itemTitle": item.title // "name": "value"
                            , "brandTitle": item.brandTitle
                            , "prePrice": item.prePrice
                            , "origPrice": item.origPrice
                            , "num": item.num
                            , "status": item.status
                            , "orderNum": item.orderNum
                        });
                        catId = item.catId;

                    }
                }
            });*/
        }
    });
</script>